<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Types')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->

<!--            <select  id="c-types" class="form-control selectpicker" name="row[types]">-->
<!--                {foreach name="typesList" item="vo"}-->
<!--                    <option value="{$key}" {in name="key" value="$row.types"}selected{/in}>{$vo}</option>-->
<!--                {/foreach}-->
<!--            </select>-->

<!--        </div>-->
<!--    </div>-->
    <input type="hidden" id="c-types" value="{$row.types}">
    <!--    时长 按时长收费-->
    <div class="form-group" id="duration">
        <label class="control-label col-xs-12 col-sm-2">{:__('Duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-duration" class="form-control" name="row[duration]" type="number" value="{$row.duration|htmlentities}">
        </div>
    </div>
    <!--    单价 按时长收费 or 按次收费-->
    <div class="form-group" id="unit_price">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unit_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unit_price" class="form-control" step="0.01" name="row[unit_price]" type="number" value="{$row.unit_price|htmlentities}">
        </div>
    </div>
    <!--    套餐时长类型 按套餐收费-->
    <div class="form-group" id="package_types">
        <label class="control-label col-xs-12 col-sm-2">{:__('Package_types')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-package_types" class="form-control selectpicker" name="row[package_types]">
                {foreach name="packageTypesList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.package_types"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Free_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-free_duration" class="form-control" name="row[free_duration]" type="number" value="{$row.free_duration|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Free_frequency')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-free_frequency" class="form-control" name="row[free_frequency]" type="number" value="{$row.free_frequency|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Free_cycle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-free_cycle" class="form-control" name="row[free_cycle]" type="number" value="{$row.free_cycle|htmlentities}">
        </div>
    </div>
    <!--    租赁超时收费金额 按套餐收费-->
    <div class="form-group" id="overtime_money">
        <label class="control-label col-xs-12 col-sm-2">{:__('Overtime_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overtime_money" class="form-control" step="0.01" name="row[overtime_money]" type="number" value="{$row.overtime_money|htmlentities}">
        </div>
    </div>
    <!--    租赁超时收费单位 按套餐收费-->
    <div class="form-group" id="overtime_company">
        <label class="control-label col-xs-12 col-sm-2">{:__('Overtime_company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overtime_company" class="form-control" name="row[overtime_company]" type="number" value="{$row.overtime_company|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
